<template>
  <rx-dialog order="button"
        btnalign="right"
        class="dialog"
        @handOk="handleSubmit"
        @cancel="cancel">
    <div>
        {{i18n('title.component','调用了RxDialog组件')}}
    </div>
    <div>
        {{i18n('title.editor','下面是编辑传过来的数据')}}
    </div>
    <div>{{record}}</div>
  </rx-dialog>
</template>
<script>
  import {RxDialog,Util} from "@lowcode/jpaas-common-lib";
    export default {
      name: "BpmTaskStart",
      components:{RxDialog},
      props:{
        record:{
          type:String,
          required:true
        },
        layerid: String,
        lydata: Object,
		destroy:Function
      },
      data(){
        return {
          task:{}
        }
      },
      methods:{
          i18n(name, text, key) {
              return this.$ti18(name, text, "assemblyLang", key);
          },
        handleSubmit(){
          Util.closeWindow(this,'ok');
        },
        cancel(){
          Util.closeWindow(this,'cancel');
        }
      }
    }
</script>
<style scoped>
</style>